home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 351-375 / disk_359 / dice / dice.lzh / lib / unix.stuff < prev   
Text File  |  1990-04-08  |  35KB  |  891 lines

  1.  
  2. NO DIALTONE
  3. atm1
  4. OK
  5. atdt6427651
  6. OK
  7. a/
  8. CONNECT 2400
  9.  
  10.  
  11. DYNIX(R) V3.0.12  (hermes.Berkeley.EDU)
  12.  
  13. login: muir
  14. Password:
  15. Last login: Sat Apr  7 10:19:59 on ttyd2
  16. DYNIX(R) V3.0.12 NFS  #12 (hirohama): Thu Nov 23 23:21:30 PST 1989
  17.  
  18. >>>    Questions?  Requests?  Send mail to "manager".
  19.  
  20. >>>    Space on /users is VERY low!  Please clean up as much as possible!
  21.  
  22. 03/17    SOFTWARE OF THE MONTH CLUB:            Who:     When:
  23.  
  24. 1/90    DECSTATION SOFTWARE OF THE MONTH CLUB:        Who:     When:
  25.     /usr6/mipsel/usrbin.mipsel/dxpsview now works    cim     1/2
  26.     Epoch 3.0 for X11R4 now in /usr/local/epoch    cim     1/29
  27.  
  28. 1/9    X11R4 binaries are ready for the decstations.
  29.     See mail sent to x-users@postgres or mail to 
  30.     cimarron@postgres for more info.
  31.  
  32. *********************************************************************
  33.  
  34.  
  35.  
  36. You have mail.
  37. TERM = (wyse50) sun
  38. Terminal type is sun
  39.   9:04pm  up 21 days, 10:10,  13 users,  load average: 0.18, 0.12, 0.04
  40. hermes:muir<1> who
  41. cimarron ttyd1     Apr  8 21:02
  42. muir     ttyd2     Apr  8 21:04
  43. hong     ttyp3     Mar 18 20:20    (faerie)
  44. hong     ttyp4     Mar 18 20:20    (faerie)
  45. hong     ttyp5     Mar 18 20:20    (faerie)
  46. sullivan ttypa     Apr  5 13:21    (shan^Chermes:muir<2> f
  47. Login        Name          TTY Idle      When          Where
  48. cimarron Cimarron Taylor       d1      Sun 21:02              
  49. muir     David Muir Sharnoff   d2      Sun 21:04              
  50. hong     Wei Hong           p3 5:17 Sun 20:20  faerie          
  51. hong     Wei Hong           p4 5:04 Sun 20:20  faerie          
  52. hong     Wei Hong           p5 5:01 Sun 20:20  faerie          
  53. sullivan Mark Sullivan           pa   1d Thu 13:21  shangri-la          
  54. mike     Mike Stonebraker      pd   2d Fri 13:04  redrider          
  55. konstan  Joe Konstan           pf   1d Sat 12:25  elmer-fudd          
  56. jhingran Anant Jhingran        pm   2d Fri 14:05  olympus          
  57. chungl     Chung Liu           pR 3:28 Mon 14:16  roger-rabbit          
  58. ywang     Yongdong Wang           pU   1d Wed 14:44  hades           
  59. seitz     Steve Seitz           pV   1d Wed 14:53  linus           
  60. chungl     Chung Liu           pZ 3:09 Tue 20:38  roger-rabbit          
  61. hermes:muir<3> ^C
  62. hermes:muir<3> cat /usr/include/sys/stat.h
  63. /* $Copyright:    $
  64.  * Copyright (c) 1984, 1985, 1986, 1987 Sequent Computer Systems, Inc.
  65.  * All rights reserved
  66.  *  
  67.  * This software is furnished under a license and may be used
  68.  * only in accordance with the terms of that license and with the
  69.  * inclusion of the above copyright notice.   This software may not
  70.  * be provided or otherwise made available to, or used by, any
  71.  * other person.  No title to or ownership of the software is
  72.  * hereby transferred.
  73.  */
  74.  
  75. /*
  76.  * $Header: stat.h 2.0 86/01/28 $
  77.  *
  78.  * stat.h
  79.  *    Structure returned from "stat" system call.
  80.  */
  81.  
  82. /* $Log:    stat.h,v $
  83.  */
  84.  
  85. struct    stat
  86. {
  87.     dev_t    st_dev;
  88.     ino_t    st_ino;
  89.     unsigned short st_mode;
  90.     short    st_nlink;
  91.     unsigned short    st_uid;
  92.     unsigned short    st_gid;
  93.     dev_t    st_rdev;
  94.     off_t    st_size;
  95.     time_t    st_atime;
  96.     int    st_spare1;
  97.     time_t    st_mtime;
  98.     int    st_spare2;
  99.     time_t    st_ctime;
  100.     int    st_spare3;
  101.     long    st_blksize;
  102.     long    st_blocks;
  103.     long    st_spare4[2];
  104. };
  105.  
  106. #define S_IFMT    0170000     /* type of file */
  107. #define     S_IFIFO 0010000 /* fifo */
  108. #define     S_IFDIR 0040000 /* directory */
  109. #define     S_IFCHR 0020000 /* character special */
  110. #define     S_IFBLK 0060000 /* block special */
  111. #define     S_IFREG 0100000 /* regular */
  112. #define     S_IFLNK 0120000 /* symbolic link */
  113. #define     S_IFSOCK 0140000/* socket */
  114. #define S_ISUID 0004000     /* set user id on execution */
  115. #define S_ISGID 0002000     /* set group id on execution */
  116. #define S_ISVTX 0001000     /* save swapped text even after use */
  117. #define S_IREAD 0000400     /* read permission, owner */
  118. #define S_IWRITE 0000200    /* write permission, owner */
  119. #define S_IEXEC 0000100     /* execute/search permission, owner */
  120. hermes:muir<4> cat /usr/include/errno.h
  121. /* $Copyright:    $
  122.  * Copyright (c) 1984, 1985 Sequent Computer Systems, Inc.
  123.  * All rights reserved
  124.  *  
  125.  * This software is furnished under a license and may be used
  126.  * only in accordance with the terms of that license and with the
  127.  * inclusion of the above copyright notice.   This software may not
  128.  * be provided or otherwise made available to, or used by, any
  129.  * other person.  No title to or ownership of the software is
  130.  * hereby transferred.
  131.  */
  132.  
  133. /* $Header: errno.h 1.1 86/04/01 $ */
  134.  
  135. /*
  136.  * Error codes
  137.  */
  138. #include <sys/errno.h>
  139. extern int errno;
  140. hermes:muir<5> cat /usr/include/sys/errno.h
  141. /* $Copyright:    $
  142.  * Copyright (c) 1984, 1985, 1986, 1987 Sequent Computer Systems, Inc.
  143.  * All rights reserved
  144.  *  
  145.  * This software is furnished under a license and may be used
  146.  * only in accordance with the terms of that license and with the
  147.  * inclusion of the above copyright notice.   This software may not
  148.  * be provided or otherwise made available to, or used by, any
  149.  * other person.  No title to or ownership of the software is
  150.  * hereby transferred.
  151.  */
  152.  
  153. /*
  154.  * $Header: errno.h 2.5 87/05/26 $
  155.  *
  156.  * errno.h
  157.  *    Error codes
  158.  */
  159.  
  160. /* $Log:    errno.h,v $
  161.  */
  162.  
  163. #define EPERM        1        /* Not owner */
  164. #define ENOENT        2        /* No such file or directory */
  165. #define ESRCH        3        /* No such process */
  166. #define EINTR        4        /* Interrupted system call */
  167. #define EIO        5        /* I/O error */
  168. #define ENXIO        6        /* No such device or address */
  169. #define E2BIG        7        /* Arg list too long */
  170. #define ENOEXEC     8        /* Exec format error */
  171. #define EBADF        9        /* Bad file number */
  172. #define ECHILD        10        /* No children */
  173. #define EAGAIN        11        /* No more processes */
  174. #define ENOMEM        12        /* Not enough core */
  175. #define EACCES        13        /* Permission denied */
  176. #define EFAULT        14        /* Bad address */
  177. #define ENOTBLK     15        /* Block device required */
  178. #define EBUSY        16        /* Mount device busy */
  179. #define EEXIST        17        /* File exists */
  180. #define EXDEV        18        /* Cross-device link */
  181. #define ENODEV        19        /* No such device */
  182. #define ENOTDIR     20        /* Not a directory*/
  183. #define EISDIR        21        /* Is a directory */
  184. #define EINVAL        22        /* Invalid argument */
  185. #define ENFILE        23        /* File, Mfile, Inode table overflow */
  186. #define EMFILE        24        /* Too many open files */
  187. #define ENOTTY        25        /* Not a typewriter */
  188. #define ETXTBSY     26        /* Text file busy */
  189. #define EFBIG        27        /* File too large */
  190. #define ENOSPC        28        /* No space left on device */
  191. #define ESPIPE        29        /* Illegal seek */
  192. #define EROFS        30        /* Read-only file system */
  193. #define EMLINK        31        /* Too many links */
  194. #define EPIPE        32        /* Broken pipe */
  195.  
  196. /* math software */
  197. #define EDOM        33        /* Argument too large */
  198. #define ERANGE        34        /* Result too large */
  199.  
  200. /* non-blocking and interrupt i/o */
  201. #define EWOULDBLOCK    35        /* Operation would block */
  202. #define EINPROGRESS    36        /* Operation now in progress */
  203. #define EALREADY    37        /* Operation already in progress */
  204. /* ipc/network software */
  205.  
  206.     /* argument errors */
  207. #define ENOTSOCK    38        /* Socket operation on non-socket */
  208. #define EDESTADDRREQ    39        /* Destination address required */
  209. #define EMSGSIZE    40        /* Message too long */
  210. #define EPROTOTYPE    41        /* Protocol wrong type for socket */
  211. #define ENOPROTOOPT    42        /* Protocol not available */
  212. #define EPROTONOSUPPORT 43        /* Protocol not supported */
  213. #define ESOCKTNOSUPPORT 44        /* Socket type not supported */
  214. #define EOPNOTSUPP    45        /* Operation not supported on socket */
  215. #define EPFNOSUPPORT    46        /* Protocol family not supported */
  216. #define EAFNOSUPPORT    47        /* Address family not supported by protocol family */
  217. #define EADDRINUSE    48        /* Address already in use */
  218. #define EADDRNOTAVAIL    49        /* Can't assign requested address */
  219.  
  220.     /* operational errors */
  221. #define ENETDOWN    50        /* Network is down */
  222. #define ENETUNREACH    51        /* Network is unreachable */
  223. #define ENETRESET    52        /* Network dropped connection on reset */
  224. #define ECONNABORTED    53        /* Software caused connection abort */
  225. #define ECONNRESET    54        /* Connection reset by peer */
  226. #define ENOBUFS     55        /* No buffer space available */
  227. #define EISCONN     56        /* Socket is already connected */
  228. #define ENOTCONN    57        /* Socket is not connected */
  229. #define ESHUTDOWN    58        /* Can't send after socket shutdown */
  230. #define ETOOMANYREFS    59        /* Too many references: can't splice */
  231. #define ETIMEDOUT    60        /* Connection timed out */
  232. #define ECONNREFUSED    61        /* Connection refused */
  233.  
  234.     /* */
  235. #define ELOOP        62        /* Too many levels of symbolic links */
  236. #define ENAMETOOLONG    63        /* File name too long */
  237.  
  238. /* should be rearranged */
  239. #define EHOSTDOWN    64        /* Host is down */
  240. #define EHOSTUNREACH    65        /* No route to host */
  241. #define ENOTEMPTY    66        /* Directory not empty */
  242.  
  243. /* quotas & mush */
  244. #define EPROCLIM    67        /* Too many processes */
  245. #define EUSERS        68        /* Too many users */
  246. #define EDQUOT        69        /* Disc quota exceeded */
  247.  
  248. /* Network File System */
  249. #define ESTALE        70        /* Stale NFS file handle */
  250. #define EREMOTE     71        /* Too many levels of remote in path */
  251.  
  252. /* SystemV Record Locking */
  253. #define EDEADLK     72        /* Deadlock condition avoided */
  254. #define ENOLCK        73        /* No locks available */
  255.  
  256. /* SystemV Messages */
  257. #define ENOMSG        74        /* no message available */
  258. #define EIDRM        75        /* message queue was removed */
  259. hermes:muir<6> cat /usr/include/signal.h
  260. /* $Copyright:    $
  261.  * Copyright (c) 1984, 1985, 1986, 1987 Sequent Computer Systems, Inc.
  262.  * All rights reserved
  263.  *  
  264.  * This software is furnished under a license and may be used
  265.  * only in accordance with the terms of that license and with the
  266.  * inclusion of the above copyright notice.   This software may not
  267.  * be provided or otherwise made available to, or used by, any
  268.  * other person.  No title to or ownership of the software is
  269.  * hereby transferred.
  270.  */
  271.  
  272. /*
  273.  * $Header: signal.h 2.6 87/04/10 $
  274.  */
  275.  
  276. /* $Log:    signal.h,v $
  277.  */
  278.  
  279. #ifndef NSIG
  280. #define NSIG    32
  281.  
  282. #define SIGHUP    1    /* hangup */
  283. #define SIGINT    2    /* interrupt */
  284. #define SIGQUIT 3    /* quit */
  285. #define SIGILL    4    /* illegal instruction (not reset when caught) */
  286. #define     ILL_PRIVIN_FAULT    0x0    /* privileged instruction fault */
  287. #define     ILL_RESOP_FAULT    0x1    /* reserved operand fault */
  288. #define SIGTRAP 5    /* trace trap (not reset when caught) */
  289. #define SIGIOT    6    /* IOT instruction */
  290. #define SIGEMT    7    /* EMT instruction */
  291. #define SIGFPE    8    /* floating point exception (see machine/fpu.h) */
  292. #define SIGKILL 9    /* kill (cannot be caught or ignored) */
  293. #define SIGBUS    10    /* bus error */
  294. #define SIGSEGV 11    /* segmentation violation */
  295. #define SIGSYS    12    /* bad argument to system call */
  296. #define SIGPIPE 13    /* write on a pipe with no one to read it */
  297. #define SIGALRM 14    /* alarm clock */
  298. #define SIGTERM 15    /* software termination signal from kill */
  299. #define SIGURG    16    /* urgent condition on IO channel */
  300. #define SIGSTOP 17    /* sendable stop signal not from tty */
  301. #define SIGTSTP 18    /* stop signal from tty */
  302. #define SIGCONT 19    /* continue a stopped process */
  303. #define SIGCHLD 20    /* to parent on child stop or exit */
  304. #define SIGTTIN 21    /* to readers pgrp upon background tty read */
  305. #define SIGTTOU 22    /* like TTIN for output if (tp->t_local<OSTOP) */
  306. #define SIGIO    23    /* input/output possible signal */
  307. #define SIGXCPU 24    /* exceeded CPU time limit */
  308. #define SIGXFSZ 25    /* exceeded file size limit */
  309. #define SIGVTALRM 26    /* virtual time alarm */
  310. #define SIGPROF 27    /* profiling time alarm */
  311. #define SIGWINCH 28    /* window size change */
  312. #define SIGUSR1 30    /* user defined signal 1 */
  313. #define SIGUSR2 31    /* user defined signal 2 */
  314.  
  315. #ifndef KERNEL
  316. int    (*signal())();
  317. #endif
  318.  
  319. /*
  320.  * Signal vector "template" used in sigvec call.
  321.  */
  322.  
  323. struct    sigvec {
  324.     int    (*sv_handler)();        /* signal handler */
  325.     int    sv_mask;        /* signal mask to apply */
  326.     int    sv_onstack;        /* if non-zero, take on signal stack */
  327. };
  328.  
  329. /*
  330.  * Structure used in sigstack call.
  331.  */
  332.  
  333. struct    sigstack {
  334.     char    *ss_sp;         /* signal stack pointer */
  335.     int    ss_onstack;        /* current status */
  336. };
  337.  
  338. /*
  339.  * Information pushed on stack when a signal is delivered.
  340.  * This is used by the kernel to restore state following
  341.  * execution of the signal handler.  It is also made available
  342.  * to the handler to allow it to properly restore state if
  343.  * a non-standard exit is performed.
  344.  */
  345.  
  346. struct    sigcontext {
  347.     int    sc_onstack;        /* sigstack state to restore */
  348.     int    sc_mask;        /* signal mask to restore */
  349.     int    sc_sp;            /* sp to restore */
  350. #ifdef    ns32000
  351.     int    sc_modpsr;        /* mod/psr to restore */
  352. #endif    ns32000
  353. #ifdef    i386
  354.     int    sc_flags;        /* flags to restore */
  355. #endif    i386
  356.     int    sc_pc;            /* pc to restore */
  357. };
  358.  
  359. #define BADSIG        (int (*)())-1
  360. #define SIG_DFL     (int (*)())0
  361. #define SIG_IGN     (int (*)())1
  362.  
  363. #ifdef KERNEL
  364. #define SIG_CATCH    (int (*)())2
  365. #define SIG_HOLD    (int (*)())3
  366.  
  367. /*
  368.  * issig() return codes.  Note that these are order dependent.
  369.  */
  370.  
  371. #define STOPPED     -1    /* No signal to process, stop was processed */
  372. #define NOSIG        0    /* No signal to process */
  373. #define GOTSIG        1    /* Signal to process */
  374. #define STPGOTSIG    2    /* Signal to process, stop was processed */
  375. #endif
  376. #endif
  377.  
  378. /*
  379.  * Macro for converting signal number to a mask suitable for sigblock()/etc.
  380.  */
  381.  
  382. #define sigmask(m)      (1 << ((m)-1))
  383. hermes:muir<7> cat /usr/include/sys/^C
  384. hermes:muir<7> ls /usr/iclude     nclude/sys
  385. ALTER-3.0.12/    flock.h     nami.h        systm.h     user.h
  386. acct.h        fs.h@        param.h     text.h        ustat.h
  387. buf.h        fsdir.h@    pathname.h    time.h        vadvise.h
  388. callout.h    inode.h@    proc.h        timeb.h     vcmd.h
  389. clist.h     ioctl.h     protosw.h    times.h     vfs.h
  390. cmap.h        ipc.h        reboot.h    tmp_ctl.h    vlimit.h
  391. conf.h        jioctl.h    resource.h    trace.h     vm.h
  392. dir.h        kernel.h    seg.h        tty.h        vmmac.h
  393. dir_att.h    map.h        sem.h        ttychars.h    vmmeter.h
  394. dk.h        mbuf.h        sem.h.orig    ttydev.h    vmparam.h
  395. dmap.h        mman.h        signal.h    types.h     vmsystm.h
  396. dnlc.h        mount.h     socket.h    uio.h        vnode.h
  397. domain.h    msg.h        socketvar.h    un.h        vtimes.h
  398. errno.h     mtio.h        stat.h        universe.h    wait.h
  399. file.h        mutex.h     syslog.h    unpcb.h
  400. hermes:muir<8> ^C
  401. hermes:muir<8> cat /usr/include/sys/ioctl.h
  402. /* $Copyright:    $
  403.  * Copyright (c) 1984, 1985, 1986, 1987 Sequent Computer Systems, Inc.
  404.  * All rights reserved
  405.  *  
  406.  * This software is furnished under a license and may be used
  407.  * only in accordance with the terms of that license and with the
  408.  * inclusion of the above copyright notice.   This software may not
  409.  * be provided or otherwise made available to, or used by, any
  410.  * other person.  No title to or ownership of the software is
  411.  * hereby transferred.
  412.  */
  413.  
  414. /*
  415.  * $Header: ioctl.h 2.8 87/08/12 $
  416.  */
  417.  
  418. /* $Log:    ioctl.h,v $
  419.  */
  420.  
  421. /*
  422.  * Ioctl definitions
  423.  */
  424. #ifndef _IOCTL_
  425. #define _IOCTL_
  426. #ifdef KERNEL
  427. #include "../h/ttychars.h"
  428. #include "../h/ttydev.h"
  429. #else
  430. #include <sys/ttychars.h>
  431. #include <sys/ttydev.h>
  432. #endif
  433.  
  434. #include <sgtty.h>
  435. struct tchars {
  436.     char    t_intrc;    /* interrupt */
  437.     char    t_quitc;    /* quit */
  438.     char    t_startc;    /* start output */
  439.     char    t_stopc;    /* stop output */
  440.     char    t_eofc;     /* end-of-file */
  441.     char    t_brkc;     /* input delimiter (like nl) */
  442. };
  443. struct ltchars {
  444.     char    t_suspc;    /* stop process signal */
  445.     char    t_dsuspc;    /* delayed stop process signal */
  446.     char    t_rprntc;    /* reprint line */
  447.     char    t_flushc;    /* flush output (toggles) */
  448.     char    t_werasc;    /* word erase */
  449.     char    t_lnextc;    /* literal next character */
  450. };
  451.  
  452. /*
  453.  * Window size structure
  454.  */
  455. struct winsize {
  456.     unsigned short    ws_row, ws_col;     /* character size of window */
  457.     unsigned short    ws_xpixel, ws_ypixel;    /* pixel size of window */
  458. };
  459.  
  460. #ifndef _IO
  461. /*
  462.  * Ioctl's have the command encoded in the lower word,
  463.  * and the size of any in or out parameters in the upper
  464.  * word.  The high 2 bits of the upper word are used
  465.  * to encode the in/out status of the parameter; for now
  466.  * we restrict parameters to at most 128 bytes.
  467.  */
  468. #define IOCPARM_MASK    0x7f        /* parameters must be < 128 bytes */
  469. #define IOC_VOID    (int)0x20000000 /* no parameters */
  470. #define IOC_OUT     (int)0x40000000 /* copy out parameters */
  471. #define IOC_IN        (int)0x80000000 /* copy in parameters */
  472. #define IOC_INOUT    (IOC_IN|IOC_OUT)
  473. /* the 0x20000000 is so we can distinguish new ioctl's from old */
  474. #define _IO(x,y)        (IOC_VOID|('x'<<8)|y)
  475. #define _IOR(x,y,t)     (IOC_OUT|((sizeof(t)&IOCPARM_MASK)<<16)|('x'<<8)|y)
  476. #define _IOW(x,y,t)     (IOC_IN|((sizeof(t)&IOCPARM_MASK)<<16)|('x'<<8)|y)
  477. /* this should be _IORW, but stdio got there first */
  478. #define _IOWR(x,y,t)    (IOC_INOUT|((sizeof(t)&IOCPARM_MASK)<<16)|('x'<<8)|y)
  479. #endif
  480.  
  481. /*
  482.  * tty ioctl commands
  483.  */
  484. #define TIOCGETD    _IOR(t, 0, int)         /* get line discipline */
  485. #define TIOCSETD    _IOW(t, 1, int)         /* set line discipline */
  486. #define TIOCHPCL    _IO(t, 2)               /* hang up on last close */
  487. #define TIOCMODG    _IOR(t, 3, int)         /* get modem control state */
  488. #define TIOCMODS    _IOW(t, 4, int)         /* set modem control state */
  489. #define     TIOCM_LE    0001        /* line enable */
  490. #define     TIOCM_DTR    0002        /* data terminal ready */
  491. #define     TIOCM_RTS    0004        /* request to send */
  492. #define     TIOCM_ST    0010        /* secondary transmit */
  493. #define     TIOCM_SR    0020        /* secondary receive */
  494. #define     TIOCM_CTS    0040        /* clear to send */
  495. #define     TIOCM_CAR    0100        /* carrier detect */
  496. #define     TIOCM_CD    TIOCM_CAR
  497. #define     TIOCM_RNG    0200        /* ring */
  498. #define     TIOCM_RI    TIOCM_RNG
  499. #define     TIOCM_DSR    0400        /* data set ready */
  500. #define TIOCGETP    _IOR(t, 8,struct sgttyb)/* get parameters -- gtty */
  501. #define TIOCSETP    _IOW(t, 9,struct sgttyb)/* set parameters -- stty */
  502. #define TIOCSETN    _IOW(t,10,struct sgttyb)/* as above, but no flushtty */
  503. #define TIOCEXCL    _IO(t, 13)              /* set exclusive use of tty */
  504. #define TIOCNXCL    _IO(t, 14)              /* reset exclusive use of tty */
  505. #define TIOCFLUSH    _IO(t, 16)              /* flush buffers */
  506. #define TIOCSETC    _IOW(t,17,struct tchars)/* set special characters */
  507. #define TIOCGETC    _IOR(t,18,struct tchars)/* get special characters */
  508. #define     TANDEM        0x00000001    /* send stopc on out q full */
  509. #define     CBREAK        0x00000002    /* half-cooked mode */
  510. #define     LCASE        0x00000004    /* simulate lower case */
  511. #define     ECHO        0x00000008    /* echo input */
  512. #define     CRMOD        0x00000010    /* map \r to \r\n on output */
  513. #define     RAW        0x00000020    /* no i/o processing */
  514. #define     ODDP        0x00000040    /* get/send odd parity */
  515. #define     EVENP        0x00000080    /* get/send even parity */
  516. #define     ANYP        0x000000c0    /* get any parity/send none */
  517. #define     NLDELAY     0x00000300    /* \n delay */
  518. #define         NL0    0x00000000
  519. #define         NL1    0x00000100    /* tty 37 */
  520. #define         NL2    0x00000200    /* vt05 */
  521. #define         NL3    0x00000300
  522. #define     TBDELAY     0x00000c00    /* horizontal tab delay */
  523. #define         TAB0    0x00000000
  524. #define         TAB1    0x00000400    /* tty 37 */
  525. #define         TAB2    0x00000800
  526. #define     XTABS        0x00000c00    /* expand tabs on output */
  527. #define     CRDELAY     0x00003000    /* \r delay */
  528. #define         CR0    0x00000000
  529. #define         CR1    0x00001000    /* tn 300 */
  530. #define         CR2    0x00002000    /* tty 37 */
  531. #define         CR3    0x00003000    /* concept 100 */
  532. #define     VTDELAY     0x00004000    /* vertical tab delay */
  533. #define         FF0    0x00000000
  534. #define         FF1    0x00004000    /* tty 37 */
  535. #define     BSDELAY     0x00008000    /* \b delay */
  536. #define         BS0    0x00000000
  537. #define         BS1    0x00008000
  538. #define     ALLDELAY    (NLDELAY|TBDELAY|CRDELAY|VTDELAY|BSDELAY)
  539. #define     CRTBS        0x00010000    /* do backspacing for crt */
  540. #define     PRTERA        0x00020000    /* \ ... / erase */
  541. #define     CRTERA        0x00040000    /* " \b " to wipe out char */
  542. #define     TILDE        0x00080000    /* hazeltine tilde kludge */
  543. #define     MDMBUF        0x00100000    /* start/stop output on carrier intr */
  544. #define     LITOUT        0x00200000    /* literal output */
  545. #define     TOSTOP        0x00400000    /* SIGSTOP on background output */
  546. #define     FLUSHO        0x00800000    /* flush output to terminal */
  547. #define     NOHANG        0x01000000    /* no SIGHUP on carrier drop */
  548. #define     L001000     0x02000000
  549. #define     CRTKIL        0x04000000    /* kill line with " \b " */
  550. #define     PASS8        0x08000000    /* pass all 8 bits on input */
  551. #define     CTLECH        0x10000000    /* echo control chars as ^X */
  552. #define     PENDIN        0x20000000    /* tp->t_rawq needs reread */
  553. #define     DECCTQ        0x40000000    /* only ^Q starts after ^S */
  554. #define     NOFLSH        0x80000000    /* no output flush on signal */
  555. /* locals, from 127 down */
  556. #define TIOCLBIS    _IOW(t, 127, int)       /* bis local mode bits */
  557. #define TIOCLBIC    _IOW(t, 126, int)       /* bic local mode bits */
  558. #define TIOCLSET    _IOW(t, 125, int)       /* set entire local mode word */
  559. #define TIOCLGET    _IOR(t, 124, int)       /* get local modes */
  560. #define     LCRTBS        (CRTBS>>16)
  561. #define     LPRTERA     (PRTERA>>16)
  562. #define     LCRTERA     (CRTERA>>16)
  563. #define     LTILDE        (TILDE>>16)
  564. #define     LMDMBUF     (MDMBUF>>16)
  565. #define     LLITOUT     (LITOUT>>16)
  566. #define     LTOSTOP     (TOSTOP>>16)
  567. #define     LFLUSHO     (FLUSHO>>16)
  568. #define     LNOHANG     (NOHANG>>16)
  569. #define     LCRTKIL     (CRTKIL>>16)
  570. #define     LPASS8        (PASS8>>16)
  571. #define     LCTLECH     (CTLECH>>16)
  572. #define     LPENDIN     (PENDIN>>16)
  573. #define     LDECCTQ     (DECCTQ>>16)
  574. #define     LNOFLSH     (NOFLSH>>16)
  575. #define TIOCSBRK    _IO(t, 123)             /* set break bit */
  576. #define TIOCCBRK    _IO(t, 122)             /* clear break bit */
  577. #define TIOCSDTR    _IO(t, 121)             /* set data terminal ready */
  578. #define TIOCCDTR    _IO(t, 120)             /* clear data terminal ready */
  579. #define TIOCGPGRP    _IOR(t, 119, int)       /* get pgrp of tty */
  580. #define TIOCSPGRP    _IOW(t, 118, int)       /* set pgrp of tty */
  581. #define TIOCSLTC    _IOW(t,117,struct ltchars)/* set local special chars */
  582. #define TIOCGLTC    _IOR(t,116,struct ltchars)/* get local special chars */
  583. #define TIOCOUTQ    _IOR(t, 115, int)       /* output queue size */
  584. #define TIOCSTI     _IOW(t, 114, char)      /* simulate terminal input */
  585. #define TIOCNOTTY    _IO(t, 113)             /* void tty association */
  586. #define TIOCPKT     _IOW(t, 112, int)       /* pty: set/clear packet mode */
  587. #define     TIOCPKT_DATA        0x00    /* data packet */
  588. #define     TIOCPKT_FLUSHREAD    0x01    /* flush packet */
  589. #define     TIOCPKT_FLUSHWRITE    0x02    /* flush packet */
  590. #define     TIOCPKT_STOP        0x04    /* stop output */
  591. #define     TIOCPKT_START        0x08    /* start output */
  592. #define     TIOCPKT_NOSTOP        0x10    /* no more ^S, ^Q */
  593. #define     TIOCPKT_DOSTOP        0x20    /* now do ^S ^Q */
  594. #define TIOCSTOP    _IO(t, 111)             /* stop output, like ^S */
  595. #define TIOCSTART    _IO(t, 110)             /* start output, like ^Q */
  596. #define TIOCMSET    _IOW(t, 109, int)       /* set all modem bits */
  597. #define TIOCMBIS    _IOW(t, 108, int)       /* bis modem bits */
  598. #define TIOCMBIC    _IOW(t, 107, int)       /* bic modem bits */
  599. #define TIOCMGET    _IOR(t, 106, int)       /* get all modem bits */
  600. #define TIOCREMOTE    _IO(t, 105)             /* remote input editing */
  601. #define TIOCGWINSZ    _IOR(t, 104, struct winsize)    /* get window size */
  602. #define TIOCSWINSZ    _IOW(t, 103, struct winsize)    /* set window size */
  603. #define TIOCUCNTL    _IOW(t, 102, int)       /* pty: set/clr usr cntl mode */
  604. #define TIOCSMON    _IO(t,100)      /* set tty monitor (superuser only) */
  605. #define TIOCNMON    _IO(t,99)       /* clear tty monitor */
  606. #define TIOCGETN    _IOWR(t, 98, int)       /* hint at next pty */
  607.  
  608. #define OTTYDISC    0        /* old, v7 std tty driver */
  609. #define NTTYDISC    1        /* new tty discipline */
  610.  
  611. #define FIOCLEX     _IO(f, 1)               /* set exclusive use on fd */
  612. #define FIONCLEX    _IO(f, 2)               /* remove exclusive use */
  613. /* another local */
  614. #define FIONREAD    _IOR(f, 127, int)       /* get # bytes to read */
  615. #define FIONBIO     _IOW(f, 126, int)       /* set/clear non-blocking i/o */
  616. #define FIOASYNC    _IOW(f, 125, int)       /* set/clear async i/o */
  617. #define FIOSETOWN    _IOW(f, 124, int)       /* set owner */
  618. #define FIOGETOWN    _IOR(f, 123, int)       /* get owner */
  619.  
  620. /* socket i/o controls */
  621. #define SIOCSHIWAT    _IOW(s,  0, int)                /* set high watermark */
  622. #define SIOCGHIWAT    _IOR(s,  1, int)                /* get high watermark */
  623. #define SIOCSLOWAT    _IOW(s,  2, int)                /* set low watermark */
  624. #define SIOCGLOWAT    _IOR(s,  3, int)                /* get low watermark */
  625. #define SIOCATMARK    _IOR(s,  7, int)                /* at oob mark? */
  626. #define SIOCSPGRP    _IOW(s,  8, int)                /* set process group */
  627. #define SIOCGPGRP    _IOR(s,  9, int)                /* get process group */
  628.  
  629. #define SIOCADDRT    _IOW(r, 10, struct rtentry)     /* add route */
  630. #define SIOCDELRT    _IOW(r, 11, struct rtentry)     /* delete route */
  631.  
  632. #define SIOCSIFADDR    _IOW(i, 12, struct ifreq)       /* set ifnet address */
  633. #define SIOCGIFADDR    _IOWR(i,13, struct ifreq)       /* get ifnet address */
  634. #define SIOCSIFDSTADDR    _IOW(i, 14, struct ifreq)       /* set p-p address */
  635. #define SIOCGIFDSTADDR    _IOWR(i,15, struct ifreq)       /* get p-p address */
  636. #define SIOCSIFFLAGS    _IOW(i, 16, struct ifreq)       /* set ifnet flags */
  637. #define SIOCGIFFLAGS    _IOWR(i,17, struct ifreq)       /* get ifnet flags */
  638. #define SIOCGIFBRDADDR    _IOWR(i,18, struct ifreq)       /* get broadcast addr */
  639. #define SIOCSIFBRDADDR    _IOW(i, 19, struct ifreq)       /* set broadcast addr */
  640. #define SIOCGIFCONF    _IOWR(i,20, struct ifconf)      /* get ifnet list */
  641. #define SIOCSIFMTU    _IOWR(i,21, struct ifreq)       /* set ifnet mtu */
  642. #define SIOCGIFMTU    _IOWR(i,22, struct ifreq)       /* get ifnet mtu */
  643.  
  644. #define SIOCIFPRON    _IOW(i,23, struct ifreq)        /* PROMISCUOUS ON */
  645. #define SIOCIFPROFF    _IOW(i,24, struct ifreq)        /* PROMISCUOUS OFF */
  646. #define SIOCIFPRMON    _IOW(i,25, struct ifreq)        /* MONITOR NET */
  647. #define SIOCIFPRMOFF    _IOW(i,26, struct ifreq)        /* MONITOR OFF */
  648.  
  649. #define SIOCGIFNETMASK    _IOWR(i,27, struct ifreq)       /* get net addr mask */
  650. #define SIOCSIFNETMASK    _IOW(i, 28, struct ifreq)       /* set net addr mask */
  651. #define SIOCGIFMETRIC    _IOWR(i,29, struct ifreq)       /* get IF metric */
  652. #define SIOCSIFMETRIC    _IOW(i, 30, struct ifreq)       /* set IF metric */
  653.  
  654. #define SIOCSARP    _IOW(i, 31, struct arpreq)      /* set arp entry */
  655. #define SIOCGARP    _IOWR(i,32, struct arpreq)      /* get arp entry */
  656. #define SIOCDARP    _IOW(i, 33, struct arpreq)      /* delete arp entry */
  657.  
  658. /* SCED Memory driver ioctls */
  659. #define SMIOSTATS        _IOR(m,0,struct sm_stats) /* smem stats */
  660. #define SMIOGETREBOOT0        _IOWR(m,1,struct ioctl_reboot) /* get reboot str */
  661. #define SMIOSETREBOOT0        _IOW(m,2,struct ioctl_reboot) /* set reboot str */
  662. #define SMIOGETREBOOT1        _IOWR(m,3,struct ioctl_reboot) /* get reboot str */
  663. #define SMIOSETREBOOT1        _IOW(m,4,struct ioctl_reboot) /* set reboot str */
  664. #define SMIOGETLOG        _IOR(m,5,struct sec_mem)  /* get mem log */
  665. #define SMIOSETLOG        _IOW(m,6,struct sec_mem)  /* set mem log */
  666.  
  667. /* ZDC disk driver ioctls */
  668. #define ZIOCBCMD        _IOWR(z, 0, struct cb)  /* do zdc cmd in cb */
  669. #endif
  670. hermes:muir<9> cat /usr/include/dir.h
  671. /usr/include/dir.h: No such file or directory
  672. hermes:muir<10> ls /usr/include/^C
  673. hermes:muir<10> man dopen
  674. No manual entry for dopen.
  675. hermes:muir<11> man opendir
  676. No manual entry for opendir.
  677. hermes:muir<12> man -k dir
  678. cd (1)                  - change working directory
  679. chdir (2)               - change current working directory
  680. chroot (2)              - change root directory
  681. compressdir, uncompressdir (1)  -  compress and uncompress directories of files
  682. dcheck (8)              - file system directory consistency check
  683. diff (1)                - differential file and directory comparator
  684. dir (5)                 - format of directories
  685. getdirentries (2)       - gets directory entries in a filesystem independent format
  686. getwd (3)               - get current working directory pathname
  687. ls (1)                  - list contents of directory
  688. ls (8S)                 - generate a standalone directory listing
  689. mkdir (1)               - make a directory
  690. mkdir (2)               - make a directory file
  691. mklost+found (8)        - make a lost+found directory for fsck
  692. opendir, readdir, telldir, seekdir, rewinddir, closedir (3) - directory operations
  693. pwd (1)                 - working directory name
  694. rm, rmdir  (1)          - remove (unlink) files or directories
  695. rmdir (2)               - remove a directory file
  696. rmdir, rm  (1)          - remove (unlink) directories or files
  697. scandir, alphasort (3)  - scan a directory
  698. syscall (2)             - indirect system call
  699. unlink (2)              - remove directory entry
  700. uuclean (8C)            - uucp spool directory clean-up
  701. ypfiles (5)             - the yellowpages database and directory structure
  702. hermes:muir<13> man opend
  703. No manual entry for opend.
  704. hermes:muir<14> man dne
  705. No manual entry for dne.
  706. hermes:muir<15> man -k dnext
  707. dnext: nothing appropriate
  708. hermes:muir<16> ls /usr/include/d*
  709. /usr/include/dbm.h    /usr/include/disktab.h
  710. hermes:muir<17> ls /usr/include/n*
  711. /usr/include/ndbm.h        /usr/include/netdb.h
  712. /usr/include/netdb-dist.h    /usr/include/nlist.h
  713.  
  714. /usr/include/net:
  715. af.h        if_arp.h    promisc.h    route.h
  716. if.h        netisr.h    raw_cb.h
  717.  
  718. /usr/include/netat:
  719. atalk.h     atp.h        katalk.h
  720.  
  721. /usr/include/netif:
  722. if_se.h pci.h
  723.  
  724. /usr/include/netinet:
  725. ALTER-3.0.12/    in.h        ip.h        tcp_debug.h    tcp_var.h
  726. ALTER-3.0.8/    in_pcb.h    ip_icmp.h    tcp_fsm.h    tcpip.h
  727. icmp_var.h    in_systm.h    ip_var.h    tcp_seq.h    udp.h
  728. if_ether.h    in_var.h    tcp.h        tcp_timer.h    udp_var.h
  729.  
  730. /usr/include/nfs:
  731. nfs.h        nfs_clnt.h    rnode.h
  732. hermes:muir<18> man 3   -k dir 3
  733. XMenu (3X)              - X Deck of cards Menu System
  734. Xlib (3X)               - C Language X Window System Interface Library
  735. Xtext (3X)              - routines to provide simple text output windows
  736. Xtty (3X)               - routines to provide terminal emulator windows
  737. abort (3)               - generate a fault
  738. abs (3)                 - integer absolute value
  739. addmntent, endmntent, getmntent, hasmntopt, setmntent (3)   - get file system descriptor file entry
  740. alarm (3C)              - schedule signal after specified time
  741. assert (3X)             - program verification
  742. atof, atoi, atol (3)    - convert ASCII to numbers
  743. bcopy, bcmp, bzero, ffs (3) - bit and byte string operations
  744. brk, sbrk (3P)          - change private data segment size
  745. cd (1)                  - change working directory
  746. chdir (2)               - change current working directory
  747. chroot (2)              - change root directory
  748. compressdir, uncompressdir (1)  -  compress and uncompress directories of files
  749. cpus_online (3P)        - returns the number of CPUs on-line
  750. crypt, setkey, encrypt (3)  - DES encryption
  751. ctime, localtime, gmtime, asctime, timezon^Ccurses (3X)         - screen functions with ``optimal'' cursor motion
  752. hermes:muir<19> man dopen
  753. No manual entry for dopen.
  754. hermes:muir<20> rsh postgres man -k dir
  755. .PP .Pm is a program designed to make the maintenance of other programs much easier. Its input is a file specifying which files depend on which other files and what to do about files that are ``out(prog) -of-date.'' .Pm is a complete rewrite of a, possi
  756. y, more familiar program, .IR Make , to perform the creation of programs in a faster, better and more convenient way (as well as in parallel) while remaining compatible with the old .IR Make . .PP The input to .Pm is called a ``makefile.'' If you don't
  757. ecify a makefile to read, .B Makefile and .BR makefile , in that order, are looked for and read if they exist (only one will be read, of course). .PP There are four basic types of lines in a makefile: .RS .IP 1) File dependency specifications .IP 2) Cre
  758. ion commands .IP 3) Variable assignments .IP 4) Comments, include statements and conditional directives .RE .PP Any line may be continued over multiple lines by ending it with a backslash. The backslash, following newline and any initial whitespace on t
  759.  fo.PP Below is a list of fonts and special characters available for the Varian and Versatec Raster printers, and the Imagen Laser printer under .IR ditroff (1). All fonts are available via the ``\eff'' (or ``\ef(ff'', or .ft font) directives at all tim
  760. .  ``.fp'' commands may be used to move them around to different positions. .PP There are two stippl^CP The argument .BI (l)    -P xxx loads parameters and character definitions for typesetter .IR xxx , which at the moment is typically one of .IR ip " (
  761. agen)," .IR va " (varian)," .I^Chermes:muir<21> ^C
  762. hermes:muir<21> ^C
  763. hermes:muir<21> ls /usr/include/sys/d*
  764. /usr/include/sys/dir.h        /usr/include/sys/dmap.h
  765. /usr/include/sys/dir_att.h    /usr/include/sys/dnlc.h
  766. /usr/include/sys/dk.h        /usr/include/sys/domain.h
  767. hermes:muir<22> cat /usr/include/sys/dir.h
  768. /* $Copyright:    $
  769.  * Copyright (c) 1984, 1985, 1986, 1987 Sequent Computer Systems, Inc.
  770.  * All rights reserved
  771.  *  
  772.  * This software is furnished under a license and may be used
  773.  * only in accordance with the terms of that license and with the
  774.  * inclusion of the above copyright notice.   This software may not
  775.  * be provided or otherwise made available to, or used by, any
  776.  * other person.  No title to or ownership of the software is
  777.  * hereby transferred.
  778.  */
  779.  
  780. /*
  781.  * $Header: dir.h 2.2 86/04/17 $
  782.  *
  783.  * dir.h
  784.  *    Directory entry structures.
  785.  */
  786.  
  787. /* $Log:    dir.h,v $
  788.  */
  789.  
  790. /*
  791.  * A directory consists of some number of blocks of DIRBLKSIZ
  792.  * bytes, where DIRBLKSIZ is chosen such that it can be transferred
  793.  * to disk in a single atomic operation (e.g. 512 bytes on most machines).
  794.  *
  795.  * Each DIRBLKSIZ byte block contains some number of directory entry
  796.  * structures, which are of variable length.  Each directory entry has
  797.  * a struct direct at the front of it, containing its inode number,
  798.  * the length of the entry, and the length of the name contained in
  799.  * the entry.  These are followed by the name padded to a 4 byte boundary
  800.  * with null bytes.  All names are guaranteed null terminated.
  801.  * The maximum length of a name in a directory is MAXNAMLEN.
  802.  *
  803.  * The macro DIRSIZ(dp) gives the amount of space required to represent
  804.  * a directory entry.  Free space in a directory is represented by
  805.  * entries which have dp->d_reclen > DIRSIZ(dp).  All DIRBLKSIZ bytes
  806.  * in a directory block are claimed by the directory entries.  This
  807.  * usually results in the last entry in a directory having a large
  808.  * dp->d_reclen.  When entries are deleted from a directory, the
  809.  * space is returned to the previous entry in the same directory
  810.  * block by increasing its dp->d_reclen.  If the first entry of
  811.  * a directory block is free, then its dp->d_ino is set to 0.
  812.  * Entries other than the first in a directory do not normally have
  813.  * dp->d_ino set to 0.
  814.  */
  815. /* so user programs can just include dir.h */
  816. #if !defined(KERNEL) && !defined(DEV_BSIZE)
  817. #define DEV_BSIZE    512
  818. #endif
  819. #define DIRBLKSIZ    DEV_BSIZE
  820. #define MAXNAMLEN    255
  821.  
  822. struct    direct {
  823.     u_long    d_fileno;        /* file number of entry */
  824.     u_short d_reclen;        /* length of this record */
  825.     u_short d_namlen;        /* length of string in d_name */
  826.     char    d_name[MAXNAMLEN + 1];    /* name must be no longer than this */
  827. };
  828. #define d_ino    d_fileno        /* compatablity */
  829.  
  830. /*
  831.  * The DIRSIZ macro gives the minimum record length which will hold
  832.  * the directory entry.  This requires the amount of space in struct direct
  833.  * without the d_name field, plus enough space for the name with a terminating
  834.  * null byte (dp->d_namlen+1), rounded up to a 4 byte boundary.
  835.  */
  836. #undef DIRSIZ
  837. #define DIRSIZ(dp) \
  838.     ((sizeof (struct direct) - (MAXNAMLEN+1)) + (((dp)->d_namlen+1 + 3) &~ 3))
  839.  
  840. #ifndef KERNEL
  841. /*
  842.  * Definitions for library routines operating on directories.
  843.  */
  844. typedef struct _dirdesc {
  845.     int    dd_fd;
  846.     long    dd_loc;
  847.     long    dd_size;
  848.     long    dd_bbase;
  849.     long    dd_entno;
  850.     long    dd_bsize;
  851.     char    *dd_buf;
  852. } DIR;
  853.  
  854. #ifndef NULL
  855. #define NULL 0
  856. #endif
  857. extern    DIR *opendir();
  858. extern    struct direct *readdir();
  859. extern    long telldir();
  860. extern    void seekdir();
  861. #define rewinddir(dirp) seekdir((dirp), (long)0)
  862. extern    void closedir();
  863. #endif    !KERNEL
  864.  
  865. #ifdef    KERNEL
  866. /*
  867.  * Template for manipulating directories.
  868.  * Should use struct direct's, but the name field
  869.  * is MAXNAMLEN - 1, and this just won't do.
  870.  */
  871. struct dirtemplate {
  872.     u_long    dot_ino;
  873.     short    dot_reclen;
  874.     short    dot_namlen;
  875.     char    dot_name[4];        /* must be multiple of 4 */
  876.     u_long    dotdot_ino;
  877.     short    dotdot_reclen;
  878.     short    dotdot_namlen;
  879.     char    dotdot_name[4];     /* ditto */
  880. };
  881. #endif    KERNEL
  882. hermes:muir<23> ,am   man seekdir
  883. No manual entry for seekdir.
  884. hermes:muir<24> man rewinddir
  885. manNo manual entry for rewinddir.
  886. hermes:muir<25>  closedir
  887. No manual entry for closedir.
  888. hermes:muir<26> .
  889. hermes:muir<27> logout
  890. 27 hits, 60 misses, 31%
  891.